<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_bootstrap.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:03 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>finder</title>

    <link rel="shortcut icon" href="favicon.ico"> <link href="__ROOT_PATH__/static/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__ROOT_PATH__/static/css/font-awesome.min93e3.css" rel="stylesheet">
    <link href="__ROOT_PATH__/static/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<!--    <link href="__ROOT_PATH__/static/css/animate.min.css" rel="stylesheet">-->
    <link href="__ROOT_PATH__/static/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    

</head>

<body style="background: #fff;">
    <div class="">
        
        <!-- End Panel Columns & Select -->

        <!-- Panel Other -->
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5><{$arguments.title}></h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a class="close-link glyphicon glyphicon-refresh" title="刷新" onclick="window.location.reload();">
                        
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <form action="" method="get" id="form"> 
                        <div class="col-sm-12" style="width:100%;">
                        <!-- Example Pagination -->
                        <div class="example-wrap">
                            <div class="btn-group hidden-xs" id="exampleTableEventsToolbar" role="group">
                                    <{volist name="arguments.actions" id="vo"  }>
                                    <button style="margin-right: 3px;" type="button" class="btn  <{$vo.iclass}>" <{if $vo.type=='window_href'}>onclick="javascript:window.location='<{$vo.url}>'"<{/if}> data-url="<{$vo.url}>" <{if condition="isset($vo['width'])"}>data-width="<{$vo.width}>"<{/if}>  <{if condition="isset($vo['height'])"}> data-height="<{$vo.height}>" <{/if}>data-title="<{$vo.val}>" >
                                        <i class="<{$vo.iclass}>" aria-hidden="true"></i><{$vo.val}>
                                    </button>
                                    <{/volist}>
                            </div>
                            <div style="float: right; ">
                                <select name="field_key" class="form-control" style="float: left; width: auto; overflow: hidden;">
                                    <{foreach name="searchGetField" item="field" key='fieldk'}>
                                    <{if condition="isset($field['search_row_allow'])&&$field['search_row_allow']=='true'"}>
                                    <option value="<{$fieldk}>"><{$field.label}></option>
                                    <{/if}>

                                    <{/foreach}>
                                </select>
                                <input class="form-control" name="field_val" type="text" style="float: left; width: auto; overflow: hidden;" />
                                <input  type="submit" value="搜索" class="btn btn-primary" style="float: left; width: auto; overflow: hidden;" />&nbsp;&nbsp;
                                
<!--                                <button type="button"  class="btn btn-link"   data-toggle="modal" data-target="#myModal4">高级搜索</button>-->
                            </div>
                            
                            <div class="example" id="examplew100" style=" OVERFLOW-X: scroll; scrollbar-face-color:#B3DDF7;scrollbar-shadow-color:#B3DDF7;scrollbar-highlight-color:#B3DDF7;scrollbar-3dlight-color:#EBEBE4;scrollbar-darkshadow-color:#EBEBE4;scrollbar-track-color:#F4F4F0;scrollbar-arrow-color:#000000; width:100%;HEIGHT: 500px;">
                                <{php}>
                                $field_num=0;
                                if(isset($getfield)){
                                    foreach($getfield as $fieldk=>$fieldv){
                                        if(isset($fieldv['width'])){
                                            $field_num+=$fieldv['width'];
                                        }else{
                                            $field_num+=150;
                                        }
                                    }
                                    $field_num+=30;
                                }
                                <{/php}>
                                <div class="field_num_width" id="field_num_width" style="width: <{$field_num}>px;">
                                    
                                <table width="<{$field_num}>px" class="table table-bordered field_num_width">
                                <tbody>
                                  <tr class="active">
                                      <td width="30px"><input type="checkbox" id="checked_all" ></td>
                                      <{if condition="isset($arguments['is_detail'])&&$arguments['is_detail']"}><td width="50px">查看</td><{/if}>
                                    <{foreach name="getfield" item="field" key='fieldk'}>
                                    <td><{$field.label}></td>
                                    <{/foreach}>
                                  </tr>
                                  <{foreach name="list.data" item="item" key='k'}>
                                  <tr>
                                    
                                    <{foreach name="item" item="content" key='kk'}>
                                    <{eq name="kk" value="id"}>
                                    <td><input type="checkbox" name="id[]" value="<{$content}>" class="zhanshop_checkbox"></td>
                                    <{if condition="isset($arguments['is_detail'])&&$arguments['is_detail']"}><td><span onclick="finder_unfold(this);"  style="cursor:pointer" class="glyphicon glyphicon-menu-hamburger" aria-hidden="true" data-status="0" data-id="<{$content}>" data-url="<{$arguments.detail_url}>" data-finder_path="<{$arguments.finder_path}>"></span>&nbsp;<span style="cursor:pointer" class="glyphicon glyphicon-export  finder_open" aria-hidden="true" data-id="<{$content}>" data-url="<{$arguments.detail_url}>" data-finder_path="<{$arguments.finder_path}>"></span></td><{/if}>
                                    <{else/}>
                                    <td>
                                    <{if condition="isset($dbstructure[$kk]['value'])&&isset($dbstructure[$kk]['value'][$content])"}>
                                        <{$dbstructure[$kk]['value'][$content]}>
                                        <{else /}>
                                        <{if condition="isset($dbstructure[$kk]['input_type'])&&$dbstructure[$kk]['input_type'] == 'img'"}>
                                        <{if condition="isset($dbstructure[$kk]['fun'])"}>
                                        <img src="<{$content|$dbstructure[$kk]['fun']}>" height="40px" />
                                        <{else}>
                                        <img src="<{$content}>" height="40px" />
                                        <{/if}>
                                        <{else}>
                                        <{if condition="isset($dbstructure[$kk]['fun'])"}>
                                        <{$content|$dbstructure[$kk]['fun']}>
                                        <{else}>
                                        <{$content}>
                                        <{/if}>
                                        <{/if}>
                                    <{/if}>
                                    
                                    </td>
                                    <{/eq}>
                                    <{/foreach}>
                                  </tr>
                                  <{/foreach}>
                                </tbody>
                              </table>
                              
                             </div>   
                                
                                
                                
                            </div>
                            <div class="fixed-table-pagination" >
                                    
                                    <div class="pull-left pagination-detail">
                                        <span class="pagination-info">当前第<{$list.current_page}>页，总共 <{$list.total}> 条记录</span>
                                        <span class="page-list">每页显示 <span class="btn-group dropup">
                                                <button type="button" class="btn btn-default  btn-outline dropdown-toggle" data-toggle="dropdown"><span class="page-size"><{if condition="isset($_GET['limit'])"}><{$Think.get.limit}><{else /}>20<{/if}></span> <span class="caret"></span></button>
                                                <ul class="dropdown-menu" role="menu">
                                                    <li  <{if condition="isset($_GET['limit'])&&$_GET['limit']==20"}>class="active"<{/if}> ><a href="<{url link=""  vars="limit=20" suffix='true' domain='true'}>">20</a></li>
                                                    <li <{if condition="isset($_GET['limit'])&&$_GET['limit']==50"}>class="active"<{/if}>  ><a href="<{url link=""  vars="limit=50" suffix='true' domain='true'}>">50</a></li>
                                                    <li <{if condition="isset($_GET['limit'])&&$_GET['limit']==100"}>class="active"<{/if}>  ><a href="<{url link=""  vars="limit=100" suffix='true' domain='true'}>">100</a></li>
                                                </ul>
                                            </span> 条记录</span></div>
                                    
                                    <div class="pull-right pagination">
                                    <{$page}>
                                    </div>
                                        
                                </div>
                        </div>
                        <!-- End Example Pagination -->
                    </div>
                    </form>
                </div>
            </div>
        </div>
        <!-- End Panel Other -->
    </div>
    
    <div class="modal inmodal" id="myModal4" tabindex="-1" role="dialog"  aria-hidden="true">
        <div class="modal-dialog">
<!--            <form action="" method="get">
                <div class="modal-content animated fadeIn">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title">高级搜索</h4>
                    </small>
                    </div>
                    <div class="modal-body">
                        <p>
                        <table width="100%" class="table table-bordered">
                        <{foreach name="searchGetField" item="field" key='fieldk'}>
                        <{if condition="isset($field['search_row_allow'])&&$field['search_row_allow']=='true'"}>                
                        <tr>
                          <td align="right"><{$field.label}></td>
                          <td><input name="<{$fieldk}>" type="text" /></td>
                        </tr>
                        <{/if}>
                        <{/foreach}>
                      </table>
                        </p>
                    </div>
                    <div class="modal-footer">
                        <input name="advanced" type="hidden" value="1" />
                        <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                        <button type="submit" class="btn btn-primary">搜索</button>
                    </div>
                </div>
            </form>-->
        </div>
    </div>
    
    
    <script src="__ROOT_PATH__/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="__ROOT_PATH__/static/js/plugins/layer/layer.min.js"></script>
    <script src="__ROOT_PATH__/static/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__ROOT_PATH__/static/js/content.min.js?v=1.0.0"></script>
    <script src="__ROOT_PATH__/static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="__ROOT_PATH__/static/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="__ROOT_PATH__/static/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="__ROOT_PATH__/static/js/demo/bootstrap-table-demo.min.js"></script>
    <script>
       if($("#field_num_width").width()<$("#examplew100").width()){
           $('.field_num_width').css('width',$("#examplew100").width());
       }
        function changeFrameHeight(){
            var ifm= document.getElementById("myiframe"); 
            ifm.height=document.documentElement.clientHeight;

        }
    </script>
<script type="text/javascript" src="__ROOT_PATH__/static/js/zhanshop.js" charset="UTF-8"></script>
</body>
</html>
